package com.twu.biblioteca;

/******
 * Created by saylward on 7/03/2014.
 */
public class User
{
    private String name;
    private String libraryNumber;
    private String password;
    private String emailAddress;
    private String phoneNumber;

    public User(String name, String libraryNumber, String password, String emailAddress, String phoneNumber)
    {
        this.name = name;
        this.libraryNumber = libraryNumber;
        this.password = password;
        this.emailAddress = emailAddress;
        this.phoneNumber = phoneNumber;
    }

    public String getName()
    {
        return name;
    }

    public String getLibraryNumber()
    {
        return libraryNumber;
    }

    public boolean validatePassword(String password)
    {
        return this.password.equals(password);
    }

    public String getEmailAddress()
    {
        return emailAddress;
    }

    public String getPhoneNumber()
    {
        return phoneNumber;
    }

    public String[] getInfo()
    {
        String[] info = new String[]{name, libraryNumber, emailAddress, phoneNumber};
        return info;
    }
}
